﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lm.Common.Auth.Client.ClientRoot;

namespace Lm.Common.Auth.Client
{
    class Root
    {
        static readonly Root clientRoot = new Root();
        public static Root ClientRoot { get { return Root.clientRoot; } }

        public MainForm MainForm { get; set; }
        public LoginForm LoginForm { get; set; }
        public ChangePasswordForm ChangePasswordForm { get; set; }
        public Lm.Common.Net.Client NetClient { get; set; }

        private Root()
        {
            this.MainForm = new MainForm();          
            this.LoginForm = new LoginForm();
            this.LoginInfo = new LoginInfo();
            this.ChangePasswordForm = new ChangePasswordForm();
            this.NetClient = new Net.Client(Lm.Common.Auth.Common.ConfigReader.ServerIp,
                Lm.Common.Auth.Common.ConfigReader.ServerPort);
        }

        public LoginInfo LoginInfo { get; set; }        
    }
}
